/**
 * 
 */
package club325.webchat.database.hibernate.dao;

import java.util.List;

import club325.webchat.database.hibernate.domain.IPPrevent;

/**
 * @author Sider
 *
 */
public interface IPPreventDAO
{
	/**
	 * Prevent a IP to visit our WebSite
	 * @param IP
	 */
	public void saveIPPrevent(IPPrevent IP);
	
	/**
	 * remove the Prevent
	 * @param IP
	 */
	public void removeIPPrevent(IPPrevent IP);
	
	/**
	 * find the IPPrevent by IP
	 * @param IP
	 * @return
	 */
	public IPPrevent getIPPreventbyIP(String IP);
	
	/**
	 * 
	 * @return
	 */
	public List<IPPrevent> getAllPrevent();
}